﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("LogBD")]
    public class LogBD
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        public DateTime DataHora { get; set; }
        
        [MaxLength(120)]
        public String UsuarioBD { get; set; }

        [MaxLength(120)]
        public String UsuarioSistema { get; set; }

        [Required]
        public long Sistema { get; set; }
        
        [MaxLength(120)]
        public String NomeTabela { get; set; }
        
        public Nullable<long> IdRegistro { get; set; }
        
        [MaxLength(8000)]
        public String ValoresAntigos { get; set; }
        
        [MaxLength(8000)]
        public String ValoresNovos { get; set; }
        
        public Nullable<long> TipoDeOperacaoNoBancoDeDados { get; set; }
    }
}